﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Xejen.Communication.Configuration
{
    /// <summary>
    /// 表示心跳配置
    /// </summary>
    /// <creator>marc</creator>
    public class HeartbeatConfig
    {
        /// <summary>
        /// 心跳是否启用，默认：true
        /// </summary>
        public bool Enable { get; set; } = true;

        /// <summary>
        /// 心跳周期，单位：毫秒。默认：4000，即4秒钟，当值小于等于0时，只执行一次
        /// </summary>
        public int Interval { get; set; } = 4000;

        /// <inheritdoc cref="HeartbeatConfig"/>
        public HeartbeatConfig(){}
    }
}
